package com.zzit.vjv.biz.impl;

import com.zzit.vjv.biz.UserBiz;
import com.zzit.vjv.dao.UserDao;
import com.zzit.vjv.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户服务层接口实现方法
 */
@Component("userBiz")
public class UserImpl implements UserBiz {


    @Resource( name = "userDao")
    private UserDao userDao;

    //查询用户信息
    @Override
    public List<User> findUserList() {


        return userDao.findUserList();
    }

    //添加用户方法
    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }
}
